package com.example.test.repository;

import com.example.test.model.Order;
import com.example.test.model.User;

import java.util.List;

public interface UserRepository {
    void save(User user);

    User findById(long id);

    List<User> find(int offset, int limit);

    List<Order> findRecentOrdersByUserId(long userId);

    void update(User user);

    void deleteById(long id);
}
